package com.lagou.domain;

import java.util.List;

public class Article {

    /**
     * id int(20) NOT NULL AUTO_INCREMENT COMMENT '文章id',
     *   title varchar(200) DEFAULT NULL COMMENT '文章标题',
     *  	  content longtext COMMENT '文章内容',
     */

    //文章id
    private int id;
    //文章标题
    private String title;
    //文章内容
    private String content;
    //文章评论
    List<Comment> commentList;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", commentList=" + commentList +
                '}';
    }
}
